//
//  AppDelegate.swift
//  BoostTestIOS
//
//  Created by 张海南 on 2023/4/14.
//

import UIKit
import flutter_boost

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        window = UIWindow(frame: UIScreen.main.bounds)
//        let vc = ViewController()
//        window?.rootViewController = UINavigationController(rootViewController: vc)
        window?.rootViewController = TabbarController()
        window?.makeKeyAndVisible()
        
        // 初始化 FlutterBoost
        let delegate = BoostDelegate.shared
        FlutterBoost.instance().setup(application, delegate: delegate) { engine in
            print("-----------")
        }
        
        return true
    }

}
